#include "udp_server.hpp"

//udp_server ip port
//INADDR_ANY -> 0
int main(int argc,char *argv[])
{
  if(argc != 2){
    std::cerr << "Usage:" << argv[0] << "port" << std::endl;
  }

 //std::string ip = "127.0.0.1";//127.0.0.1 == localhost:标识本主机：本地环回
 
  int port = atoi(argv[1]);
  
  UdpServer *svr = new UdpServer(port);
  svr->InitUdpServer();

  svr->Start();
  return 0;
}
